<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/style/basic_layout.css" rel="stylesheet" type="text/css">
    <link href="/style/common_style.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/js/plugins/artDialog/jquery.artDialog.js?skin=blue"></script>
    <script type="text/javascript" src="/js/plugins/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery-validate/jquery.validate.js"></script>
    <script type="text/javascript" src="/js/commonAll.js"></script>
    <title>叩丁狼教育PSS（演示版）-订货报表</title>
    <style>
        .alt td{ background:black !important;}
    </style>

    <script>
        $(function () {
            //开始时间
            $("[name=beginDate]").click(function () {
                WdatePicker({
                    maxnDate:$("[name=endDate]").val(),

                });
            });
            //结束时间,不等小于开始时间
            $("[name=endDate]").click(function () {
                WdatePicker({
                    minDate:$("[name=beginDate]").val()
        })
    </script>
</head>
<body>
<form id="searchForm" action="#" method="post">
    <div id="container">
        <div class="ui_content">
            <div class="ui_text_indent">
                <div id="box_border">
                    <div id="box_top">搜索</div>
                    <div id="box_center">
                        开始时间
                        <fmt:formatDate value="${qo.beginDate}" pattern="yyyy-MM-dd" var="fmtBeginData"/>
                        <fmt:formatDate value="${qo.endDate}" pattern="yyyy-MM-dd" var="fmtEndData"/>
                        <input type="text" class="ui_input_txt02 Wdate" name="beginDate" value="${fmtBeginData}"/>
                        结束时间
                        <input type="text" class="ui_input_txt02 Wdate" name="endDate" value="${fmtEndData}"/>
                        供应商
                        <select class="ui_select01" name="supplierId">
                            <option value="-1">请选择</option>
                            <c:forEach items="${suppliers}" var="c">
                                <option value="${c.id}" ${c.id == qo.supplierId ? 'selected' : ''}>${c.name}</option>
                            </c:forEach>
                        </select>
                        品牌
                        <select class="ui_select01" name="brandId">
                            <option value="-1">请选择</option>
                            <c:forEach items="${brands}" var="c">
                                <option value="${c.id}" ${c.id == qo.brandId ? 'selected' : ''}>${c.name}</option>
                            </c:forEach>
                        </select>
                        分组类型
                        <select class="ui_select01" name="groupBy">
                            <c:forEach items="${groupTypes}" var="c">
                                <option value="${c.key}" ${c.key == qo.groupBy ? 'selected' : ''}>${c.value}</option>
                            </c:forEach>
                        </select>
                    </div>
                    <div id="box_bottom">
                        <input type="submit" value="查询" class="ui_input_btn01 btn_page"/>
                        <input type="button" value="新增" class="ui_input_btn01 btn_redirect" data-url="/employee/input.do"/>
                        <input type="button" value="批量删除" class="btu_batchDelete" data-url="/employee/bacthDelete.do" >
                    </div>
                </div>
            </div>
        </div>
        <div class="ui_content">
            <div class="ui_tb">
                <table class="table" cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
                    <tr>
                        <th width="30"><input type="checkbox" id="all" /></th>
                        <th>分组类型</th>
                        <th>订单总数量</th>
                        <th>订单总金额</th>

                    </tr>
                    <tbody>
                <c:forEach var="c" items="${datas}">
                    <tr>
                        <td><input type="checkbox" name="IDCheck" class="acb" data-eid="${c.id}" /></td>
                        <td>${c.groupType}</td>
                        <td>${c.totalNumber}</td>
                        <td>${c.totalAmount}</td>
                    </tr>
                </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</form>
</body>
</html>
